<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic
  PUBLIC "-//OASIS//DTD DITA Composite//EN" "ditabase.dtd">
<topic id="topic1"><title id="ba20941">ALTER TRIGGER</title><body><p id="sql_command_desc">Changes the definition of a trigger.</p><section id="section2"><title>Synopsis</title><codeblock id="sql_command_synopsis">ALTER TRIGGER <varname>name</varname> ON <varname>table</varname> RENAME TO <varname>newname</varname></codeblock></section><section id="section3"><title>Description</title><p><codeph>ALTER TRIGGER</codeph> changes properties of an existing trigger.
The <codeph>RENAME</codeph> clause changes the name of the given trigger
without otherwise changing the trigger definition. You must own the table
on which the trigger acts to be allowed to change its properties.</p></section><section id="section4"><title>Parameters</title><parml><plentry><pt><varname>name</varname></pt><pd>The name of an existing trigger to alter. </pd></plentry><plentry><pt><varname>table</varname></pt><pd>The name of the table on which this trigger acts. </pd></plentry><plentry><pt><varname>newname</varname></pt><pd>The new name for the trigger.</pd></plentry></parml></section><section id="section5"><title>Notes</title><p>The ability to temporarily enable or disable a trigger is provided by <codeph><xref
            href="ALTER_TABLE.xml#topic1" type="topic" format="dita"/></codeph>, not by
          <codeph>ALTER TRIGGER</codeph>, because <codeph>ALTER TRIGGER</codeph> has no convenient
        way to express the option of enabling or disabling all of a table's triggers at once.</p><p>Note that Greenplum Database has limited support of triggers in this release. See <codeph><xref
            href="CREATE_TRIGGER.xml#topic1" type="topic" format="dita"/></codeph> for more
        information.</p></section><section id="section6"><title>Examples</title><p>To rename an existing trigger:</p><codeblock>ALTER TRIGGER emp_stamp ON emp RENAME TO emp_track_chgs;</codeblock></section><section id="section7"><title>Compatibility</title><p><codeph>ALTER TRIGGER</codeph> is a Greenplum Database extension of
the SQL standard. </p></section><section id="section8"><title>See Also</title><p><codeph><xref href="ALTER_TABLE.xml#topic1" type="topic" format="dita"/></codeph>, <codeph><xref
            href="CREATE_TRIGGER.xml#topic1" type="topic" format="dita"/></codeph>, <codeph><xref
            href="DROP_TRIGGER.xml#topic1" type="topic" format="dita"/></codeph></p></section></body></topic>
